<?php
class Project extends AppModel
{
	var $name = 'Project';
    var $primaryKey = 'id'; 
    var $conditions = "Project.is_deleted='0'";
    var $hasMany = array (
			'pros_cvalue' => array (
			'className' => 'ProCvalue',
			'foreignKey' => 'pid',
    		),
    		'Attachment' => array (
    		'conditions' => array("Attachment.is_deleted='0'"),
			'className' => 'Attachment',
			'foreignKey' => 'pid'
			),
			'Informationfrom' => array (
			'className' => 'Informationfrom',
			'foreignKey' => 'pid',
    		),
    		'Competence' => array (
			'className' => 'Competence',
			'foreignKey' => 'pid',
    		)
	); 
	var $belongsTo = array(
        'phase_cvalue' => array(
            'className'    => 'Codevalue',
            'foreignKey'    => 'phase'
        ),
        'reg_cvalue' => array(
            'className'    => 'Codevalue',
            'foreignKey'    => 'reg_type'
        ),
        'reg_decl_cvalue' => array(
            'className'    => 'Codevalue',
            'foreignKey'    => 'reg_decl_phase'
        )
    ); 
}
?>
